package com.zyf.cloud.getway;

import co.elastic.apm.attach.ElasticApmAttacher;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@SpringBootApplication
@EnableFeignClients
@EnableEurekaClient
public class GatwayApplication {


    public static void main(String[] args) {

        // 重点，调用ElasticApmAttacher.attach();函数
        ElasticApmAttacher.attach();

        SpringApplication.run(GatwayApplication.class, args);
    }

}